/*
 * Copyright (c) 2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef NATIVEXCOMPONENT_KEY_MOUSE_EVENT_TEST_H
#define NATIVEXCOMPONENT_KEY_MOUSE_EVENT_TEST_H

#include "../common/common.h"
#include <ace/xcomponent/native_interface_xcomponent.h>
#include <string>

namespace NativeXComponentSample {

class XComponentKeyMouseEventTest {
public:
    ~XComponentKeyMouseEventTest();
    static napi_value CreateKeyMouseEventNativeRoot(napi_env env, napi_callback_info info);
    static napi_value GetKeyString(napi_env env, napi_callback_info info);
    static napi_value GetIndicatorString(napi_env env, napi_callback_info info);
    static napi_value GetMouseString(napi_env env, napi_callback_info info);

    static napi_value TestGetExtraMouseEventInfoErrorCode_01(napi_env env, napi_callback_info info);
    static napi_value TestGetExtraMouseEventInfoErrorCode_02(napi_env env, napi_callback_info info);
    static napi_value TestGetMouseEventModifierKeyStatesErrorCode_01(napi_env env, napi_callback_info info);
    static napi_value TestGetMouseEventModifierKeyStatesErrorCode_02(napi_env env, napi_callback_info info);
    static napi_value TestGetKeyEventModifierKeyStatesErrorCode_01(napi_env env, napi_callback_info info);
    static napi_value TestGetKeyEventModifierKeyStatesErrorCode_02(napi_env env, napi_callback_info info);
    static napi_value TestGetKeyEventNumLockStateErrorCode_01(napi_env env, napi_callback_info info);
    static napi_value TestGetKeyEventNumLockStateErrorCode_02(napi_env env, napi_callback_info info);
    static napi_value TestGetKeyEventCapsLockStateErrorCode_01(napi_env env, napi_callback_info info);
    static napi_value TestGetKeyEventCapsLockStateErrorCode_02(napi_env env, napi_callback_info info);
    static napi_value TestGetKeyEventScrollLockStateErrorCode_01(napi_env env, napi_callback_info info);
    static napi_value TestGetKeyEventScrollLockStateErrorCode_02(napi_env env, napi_callback_info info);
    static napi_value TestRegisterKeyEventCallbackWithResult_01(napi_env env, napi_callback_info info);
    static napi_value TestRegisterKeyEventCallbackWithResult_02(napi_env env, napi_callback_info info);
    static napi_value TestGetTouchPointErrorCode_01(napi_env env, napi_callback_info info);
    static napi_value TestGetTouchPointErrorCode_02(napi_env env, napi_callback_info info);
};
} // namespace NativeXComponentSample
#endif // NATIVEXCOMPONENT_KEY_MOUSE_EVENT_TEST_H